package com.rock.code.bigdata.load.controller;

import com.rock.code.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by SJ on 2018/8/21.
 */

@Controller
@RequestMapping("/changer")
public class ChangerController extends BaseController {

    @RequestMapping("/{UNIT_ID}/{DATE_TYPE}/{CLASS_NAME}")
    public String host(@PathVariable("UNIT_ID")String UNIT_ID,@PathVariable("DATE_TYPE")String DATE_TYPE, @PathVariable("CLASS_NAME") String CLASS_NAME){
        this.request.setAttribute("UNIT_ID",UNIT_ID);
        this.request.setAttribute("DATE_TYPE", DATE_TYPE);
        this.request.setAttribute("CLASS_NAME", CLASS_NAME);
        return "bigdata/changer/changerpage";
    }
}
